package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}

type URis struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}

type RNis struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}

type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}

type Car struct {
	gorm.Model
	CarName  string `gorm:"type:varchar(50)"`
	CarType  string `gorm:"type:varchar(50)"`
	CarPrice string `gorm:"type:varchar(50)"`
	CarNum   string `gorm:"type:varchar(50)"`
	CarTime  string `gorm:"type:varchar(50)"`
}

type Mgr struct {
	gorm.Model
	Cid       int    `gorm:"type:int"`
	MgrTime   string `gorm:"type:varchar(50)"`
	MgrType   string `gorm:"type:varchar(50)"`
	MgrStatus string `gorm:"type:varchar(50)"`
	MgrPeople string `gorm:"type:varchar(50)"`
}

type CarMgr struct {
	CarMgrId  int
	CarName   string
	CarType   string
	CarPrice  string
	CarNum    string
	CarTime   string
	MgrTime   string
	MgrType   string
	MgrStatus string
	MgrPeople string
}

// User1 车辆数据信息管理
type User1 struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type UR1 struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Role1 struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type RN1 struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Node1 struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type Car1 struct {
	gorm.Model
	CarName  string `gorm:"type:varchar(50)"`
	CarType  string `gorm:"type:varchar(50)"`
	CarPrice string `gorm:"type:varchar(50)"`
	CarTime  string `gorm:"type:varchar(50)"`
}
type CarType struct {
	gorm.Model
	Cid        int    `gorm:"type:int"`
	TypeName   string `gorm:"type:varchar(50)"`
	CarComment string `gorm:"type:varchar(50)"`
	CarNum     string `gorm:"type:varchar(50)"`
}
type CarCarType struct {
	CarCarTypeId int    `gorm:"type:int"`
	CarName      string `gorm:"type:varchar(50)"`
	CarType      string `gorm:"type:varchar(50)"`
	CarPrice     string `gorm:"type:varchar(50)"`
	CarTime      string `gorm:"type:varchar(50)"`
	TypeName     string `gorm:"type:varchar(50)"`
	CarComment   string `gorm:"type:varchar(50)"`
	CarNum       string `gorm:"type:varchar(50)"`
}
